<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <title>bookPage</title>
</head>
<body>
<table border="1px solid">
    <tr>
        <th>id</th>
        <th>书名</th>
        <th>类型</th>
        <th>作者</th>
        <th>添加时间</th>
        <th>添加人</th>
        <th>是否借阅</th>
        <th>借阅人</th>
        <th>借阅时间</th>

</tr>
    <#list books as book>
        <tr>
            <td>${book.id}</td>
            <td>${book.name}</td>
            <td>${book.type}</td>
            <td>${book.author}</td>
            <td> ${book.addTime ? string("yyyy-MM-dd HH:mm:ss")}</td>
            <td>${book.addPeople}</td>
            <#if book.borrow  ==  1>
            <td>已借出</td>
            <#else>
            <td>未借出</td>
            </#if>
            <td>${book.borrowPeople}</td>
            <td>${book.addTime ? string("yyyy-MM-dd HH:mm:ss")}</td>
        </tr>
    </#list>
</table>
</body>
</html>